/**
  ******************************************************************************
  * @file    system_cw32l01x.h
  * @author  WHXY Application Team
  * @brief
  ******************************************************************************
  */

#ifndef __SYSTEM_CW32L01X_H
#define __SYSTEM_CW32L01X_H

#ifdef __cplusplus
extern "C" {
#endif
/**************************** Includes ***************************************/
#include "base_types.h"
#include "cw32l01x.h"

/**************************** Exported_Constants *****************************/


/**************************** Exported_Macros ********************************/
#define SYSCTRL_HSI_TRIMCODEADDR       (0x001007C0U)     //
#define SYSCTRL_LSI_TRIMCODEADDR       (0x001007C2U)     //
#define DEFAULT_SYSTEM_CLOCK           (4000000u)        /* Default System clock value */

/**************************** Exported_Variables *****************************/
extern uint32_t SystemCoreClock;          // System Clock Frequency (Core Clock)


/**************************** Exported_Functions *****************************/
extern void SystemInit (void);            // Initialize the system
extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable
extern void FirmwareDelay(uint32_t DlyCnt);

#ifdef __cplusplus
}
#endif

#endif /* __SYSTEM_CW32L01X_H__ */
